<% @page_title = "多背一公斤 | 在 #{h @group.title} 写新话题" -%>

<% content_for :head do -%>
  <script type="text/javascript" src="/javascripts/thickbox.js"></script>
  <link rel="stylesheet" href="/stylesheets/thickbox.css" type="text/css" media="screen" />
<% end -%>

<% content_for :sidebar do -%>
  <h4><%= link_to "返回#{h @group.title}", group_url(@group.id) %></h4>
<% end -%>

<h3>在 <%= h @group.title %> 写新话题</h3>
<%= error_messages_for :topic %>
<% form_for :topic, :url => topics_path do |f| -%>
  <%= render :partial => 'form', :object => f %>
  <%= submit_tag "写好了，提交" %>
<% end -%>
<p />